import request from '@/utils/request'

// 查询项目桩机报警列表
export function listProjectPilingAlarm(query) {
  return request({
    url: '/pile/projectPilingAlarm/list',
    method: 'get',
    params: query
  })
}

// 查询项目桩机报警所有列表
export function listAllProjectPilingAlarm(query) {
  return request({
    url: '/pile/projectPilingAlarm/listAll',
    method: 'get',
    params: query
  })
}

// 查询项目桩机报警详细
export function getProjectPilingAlarm(id) {
  return request({
    url: '/pile/projectPilingAlarm/getInfo/' + id,
    method: 'get'
  })
}

// 新增项目桩机报警
export function addProjectPilingAlarm(data) {
  return request({
    url: '/pile/projectPilingAlarm/add',
    method: 'post',
    data: data
  })
}

// 修改项目桩机报警
export function updateProjectPilingAlarm(data) {
  return request({
    url: '/pile/projectPilingAlarm/edit',
    method: 'post',
    data: data
  })
}

// 删除项目桩机报警
export function delProjectPilingAlarm(id) {
  return request({
    url: '/pile/projectPilingAlarm/remove/' + id,
    method: 'get'
  })
}
